package com.jacken.mars.entity.base;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 用户认证状态
 *
 * @author wq
 * @date 2020/10/23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Authentication implements Serializable {
    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 用户角色
     */
    private String role;
    /**
     * 登录平台
     */
    private String client;
    /**
     * 用户名称
     */
    private String username;
    /**
     * 账户状态
     */
    private String status;
    /**
     * 用户角色
     */
    private List<String> authorities;

    public Authentication(Integer userId, String role, String client, String username, List<String> authorities) {
        this.userId = userId;
        this.role = role;
        this.client = client;
        this.username = username;
        this.authorities = authorities;
    }
}
